<?php namespace App\Http\Controllers\Site;

use App\Http\Controllers\Controller;
use App\Item;
use DB;

class CourseController extends Controller
 {
     public function getIndex($kind='Semi permanent installation training')
     {
        $data = Item::where('kind',$kind)->paginate( config('site.courses.pageSize'));

       return view('site.Course.index',[
           'data'=>$data,
           'param'=>['kind'=>$kind]
       ]);
     }
    public function getClass($id='0')
    {

        $data= Item::where('id',$id)->get();
        return view('site.Course.class',[
            'data'=>$data,
            'param'=>['id'=>$id],

        ]);
    }


}